# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-olefile
pkgver=0.46
pkgrel=6
pkgdesc="Python module to read/write MS OLE2 files"
url="https://www.decalage.info/olefile"
arch="noarch"
license="BSD-2-Clause"
makedepends="python3-dev py3-setuptools"
source="https://github.com/decalage2/olefile/releases/download/v$pkgver/olefile-$pkgver.tar.gz"
builddir="$srcdir"/${pkgname/py3-/}-$pkgver

provides="py-olefile=$pkgver-r$pkgrel" # backwards compatibility
replaces="py-olefile" # backwards compatiblity

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="285dff1eb250d464e338f892dca3e465504523fd956ceeb8bfe40eb9a82510713f64f490749a23bfdc911555f8d9c49580af5b03a15063c2598bb1a39999778f  olefile-0.46.tar.gz"
